import shutil
import os

oldpath = "d:\\wzm"
newpath = "d:\\test"

isExists=os.path.exists(oldpath)
if isExists:
	shutil.copytree(oldpath, newpath)
	print('文件夹 ' + oldpath + ' 复制到' + newpath + '成功')
else:
	print('要复制的文件夹不存在！')